<%@ page import="com.erpanderp.pr.model.entity.PurchaseRequestTransactionView" %>



<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'purchaseRequestCode', 'error')} ">
	<label for="purchaseRequestCode">
		<g:message code="purchaseRequestTransactionView.purchaseRequestCode.label" default="Purchase Request Code" />
		
	</label>
	<g:textField name="purchaseRequestCode" maxlength="50" value="${purchaseRequestTransactionViewInstance?.purchaseRequestCode}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'sapPrNumber', 'error')} ">
	<label for="sapPrNumber">
		<g:message code="purchaseRequestTransactionView.sapPrNumber.label" default="Sap Pr Number" />
		
	</label>
	<g:textArea name="sapPrNumber" cols="40" rows="5" maxlength="255" value="${purchaseRequestTransactionViewInstance?.sapPrNumber}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'documentType', 'error')} ">
	<label for="documentType">
		<g:message code="purchaseRequestTransactionView.documentType.label" default="Document Type" />
		
	</label>
	<g:textField name="documentType" maxlength="4" value="${purchaseRequestTransactionViewInstance?.documentType}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'itemNumber', 'error')} required">
	<label for="itemNumber">
		<g:message code="purchaseRequestTransactionView.itemNumber.label" default="Item Number" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="itemNumber" type="number" value="${purchaseRequestTransactionViewInstance.itemNumber}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'accountAssignmentCategory', 'error')} ">
	<label for="accountAssignmentCategory">
		<g:message code="purchaseRequestTransactionView.accountAssignmentCategory.label" default="Account Assignment Category" />
		
	</label>
	<g:textField name="accountAssignmentCategory" maxlength="1" value="${purchaseRequestTransactionViewInstance?.accountAssignmentCategory}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'itemCategory', 'error')} ">
	<label for="itemCategory">
		<g:message code="purchaseRequestTransactionView.itemCategory.label" default="Item Category" />
		
	</label>
	<g:textField name="itemCategory" maxlength="1" value="${purchaseRequestTransactionViewInstance?.itemCategory}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'material', 'error')} ">
	<label for="material">
		<g:message code="purchaseRequestTransactionView.material.label" default="Material" />
		
	</label>
	<g:textField name="material" maxlength="18" value="${purchaseRequestTransactionViewInstance?.material}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'shortText', 'error')} ">
	<label for="shortText">
		<g:message code="purchaseRequestTransactionView.shortText.label" default="Short Text" />
		
	</label>
	<g:textField name="shortText" maxlength="40" value="${purchaseRequestTransactionViewInstance?.shortText}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'quantity', 'error')} required">
	<label for="quantity">
		<g:message code="purchaseRequestTransactionView.quantity.label" default="Quantity" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="quantity" value="${fieldValue(bean: purchaseRequestTransactionViewInstance, field: 'quantity')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'unit', 'error')} ">
	<label for="unit">
		<g:message code="purchaseRequestTransactionView.unit.label" default="Unit" />
		
	</label>
	<g:textField name="unit" maxlength="3" value="${purchaseRequestTransactionViewInstance?.unit}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'materialGroup', 'error')} ">
	<label for="materialGroup">
		<g:message code="purchaseRequestTransactionView.materialGroup.label" default="Material Group" />
		
	</label>
	<g:textField name="materialGroup" maxlength="3" value="${purchaseRequestTransactionViewInstance?.materialGroup}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'plant', 'error')} ">
	<label for="plant">
		<g:message code="purchaseRequestTransactionView.plant.label" default="Plant" />
		
	</label>
	<g:textField name="plant" maxlength="4" value="${purchaseRequestTransactionViewInstance?.plant}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'storageLocation', 'error')} ">
	<label for="storageLocation">
		<g:message code="purchaseRequestTransactionView.storageLocation.label" default="Storage Location" />
		
	</label>
	<g:textField name="storageLocation" maxlength="4" value="${purchaseRequestTransactionViewInstance?.storageLocation}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'purchasingGroup', 'error')} ">
	<label for="purchasingGroup">
		<g:message code="purchaseRequestTransactionView.purchasingGroup.label" default="Purchasing Group" />
		
	</label>
	<g:textField name="purchasingGroup" maxlength="3" value="${purchaseRequestTransactionViewInstance?.purchasingGroup}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'desiredVendor', 'error')} ">
	<label for="desiredVendor">
		<g:message code="purchaseRequestTransactionView.desiredVendor.label" default="Desired Vendor" />
		
	</label>
	<g:textField name="desiredVendor" maxlength="10" value="${purchaseRequestTransactionViewInstance?.desiredVendor}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'glAccount', 'error')} ">
	<label for="glAccount">
		<g:message code="purchaseRequestTransactionView.glAccount.label" default="Gl Account" />
		
	</label>
	<g:textField name="glAccount" maxlength="10" value="${purchaseRequestTransactionViewInstance?.glAccount}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'costCenter', 'error')} ">
	<label for="costCenter">
		<g:message code="purchaseRequestTransactionView.costCenter.label" default="Cost Center" />
		
	</label>
	<g:textField name="costCenter" maxlength="10" value="${purchaseRequestTransactionViewInstance?.costCenter}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'orderDetail', 'error')} ">
	<label for="orderDetail">
		<g:message code="purchaseRequestTransactionView.orderDetail.label" default="Order Detail" />
		
	</label>
	<g:textField name="orderDetail" maxlength="10" value="${purchaseRequestTransactionViewInstance?.orderDetail}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'network', 'error')} ">
	<label for="network">
		<g:message code="purchaseRequestTransactionView.network.label" default="Network" />
		
	</label>
	<g:textField name="network" maxlength="12" value="${purchaseRequestTransactionViewInstance?.network}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'transactionStatus', 'error')} ">
	<label for="transactionStatus">
		<g:message code="purchaseRequestTransactionView.transactionStatus.label" default="Transaction Status" />
		
	</label>
	<g:select name="transactionStatus" from="${purchaseRequestTransactionViewInstance.constraints.transactionStatus.inList}" value="${purchaseRequestTransactionViewInstance?.transactionStatus}" valueMessagePrefix="purchaseRequestTransactionView.transactionStatus" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'createdBy', 'error')} ">
	<label for="createdBy">
		<g:message code="purchaseRequestTransactionView.createdBy.label" default="Created By" />
		
	</label>
	<g:textArea name="createdBy" cols="40" rows="5" maxlength="255" value="${purchaseRequestTransactionViewInstance?.createdBy}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'lastUpdatedBy', 'error')} ">
	<label for="lastUpdatedBy">
		<g:message code="purchaseRequestTransactionView.lastUpdatedBy.label" default="Last Updated By" />
		
	</label>
	<g:textArea name="lastUpdatedBy" cols="40" rows="5" maxlength="255" value="${purchaseRequestTransactionViewInstance?.lastUpdatedBy}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'deliveryDate', 'error')} required">
	<label for="deliveryDate">
		<g:message code="purchaseRequestTransactionView.deliveryDate.label" default="Delivery Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="deliveryDate" precision="day"  value="${purchaseRequestTransactionViewInstance?.deliveryDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="purchaseRequestTransactionView.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${purchaseRequestTransactionViewInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: purchaseRequestTransactionViewInstance, field: 'purchaseRequest', 'error')} required">
	<label for="purchaseRequest">
		<g:message code="purchaseRequestTransactionView.purchaseRequest.label" default="Purchase Request" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="purchaseRequest" name="purchaseRequest.id" from="${com.erpanderp.pr.model.entity.PurchaseRequest.list()}" optionKey="id" required="" value="${purchaseRequestTransactionViewInstance?.purchaseRequest?.id}" class="many-to-one"/>
</div>

